<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {{template  "link/sell/link.html" .}}
</head>
<body>
{{template "link/sell/nav.html" . }}
{{template "link/sell/header.html" .}}
<div class="layui-main">
    <div class="layui-row">
        <legend class="registerWord">卖家店铺注册界面</legend>
    </div>
    <div class="layui-row">
        <div class="layui-col-lg-offset3 layui-col-lg6">
            <div class="register">
                <form class="layui-form" action="/sell/store/reg" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品名字</label>
                        <div class="layui-input-block">
                            <input class="layui-input" type="text" placeholder="商品名字" name="storename"
                                   lay-verify="required">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">上面简介</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="storeinfo" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-row registerBtn">
                        <div class="layui-col-lg-offset3 layui-col-lg3">
                            <button class="layui-btn"></button>
                        </div>
                        <div class="layui-col-lg-offset3 layui-col-lg3">
                            <button class="layui-btn" id="regBtn">注册</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{{template  "link/sell/footer.html" .}}
<script>

    layui.use(['jquery', 'layer', 'form'], function (args) {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        form.render("select");
        $("input").blur(function () {
            var inputValue = $(this).val();
            if ($.trim(inputValue) == '' || $.trim(inputValue) == null) {
                layer.tips('不能为空', this);
                return false;
            }
        });
    });
</script>
</body>
</html>